-- 界面模块
local ConfigLoader = require("config.loader")
local Settings = require("config.settings")
local config = ConfigLoader.load(Settings.CURRENT_GAME)
local logger = require "utils.logger"
local tslib = require "TSLib"

local Window = {}

-- 根据多点比色判断是否打开地图
function Window.closeOtherWindow()
    logger.info("关闭其他窗口")
    for _, btn in ipairs(config.WINDOW.close_buttons) do
        if multiColor(btn.colors) then
            tap(btn.coords[1], btn.coords[2])
        end 
    end
    logger.info("关闭其他窗口完成")
end

return Window
